﻿<%@ Page Language="VB" AutoEventWireup="true" CodeFile="Default.aspx.vb" MasterPageFile="~/Public/MasterPage.master"
    Inherits="_Default" %>

<%@ Register Src="~/LoginUpdateProgress.ascx" TagName="UpdateProgress" TagPrefix="My" %>
<%@ Register Src="~/WebForm/Main/SearchBulletin.ascx" TagName="SearchBulletin" TagPrefix="My" %>
<%@ Register Src="~/WebForm/Main/SearchEnlistHeader.ascx" TagName="SearchEnlistHeader"
    TagPrefix="My" %>
<%--<%@ Register Src="~/WebForm/Main/SearchFindDirtyHeader.ascx" TagName="SearchFindDirtyHeader"
    TagPrefix="My" %>--%>
<%@ Register Src="~/WebForm/Main/SearchServiceBulletin.ascx" TagName="SearchServiceBulletin" TagPrefix="My" %>
<%@ Register Src="~/WebForm/Main/SearchTrainingCourse.ascx" TagName="SearchTrainingCourse"
    TagPrefix="My" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div align="center">
        <table width="95%">

<%--            <tr>
                   <td height="59" style="background-repeat:no-repeat;" background="<%=ResolveUrl("~/images/NewImages/content1.jpg")%>">
                    <%--<asp:Label ID="lblBulletin" runat="server" meta:resourcekey="lblBulletin"></asp:Label>--%>
<%--                </td>
--%><%--            </tr>--%>
          <tr>
                <td>
                    <My:SearchBulletin ID="SearchBulletin1" runat="server"></My:SearchBulletin>
                </td>
            </tr>
                        <tr>
                <td>
                   &nbsp;
                </td>
            </tr>
            <tr>
                <td class="Section" align="left">
                    <asp:Label ID="lblEnlistHeaderInfo" runat="server" meta:resourcekey="lblEnlistHeaderInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <My:SearchEnlistHeader ID="SearchEnlistHeader1" runat="server"></My:SearchEnlistHeader>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="Section" align="left">
                    <asp:Label ID="lblFindDirtyHeaderInfo" runat="server" meta:resourcekey="lblFindDirtyHeaderInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="left">
                <My:SearchServiceBulletin ID="SearchServiceBulletin1" runat="server" />
<%--                    <My:SearchFindDirtyHeader ID="SearchFindDirtyHeader1" runat="server"></My:SearchFindDirtyHeader>
--%>                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td class="Section" align="left">
                    <asp:Label ID="lblTrainingCourseInfo" runat="server" meta:resourcekey="lblTrainingCourseInfo"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="left">
                    <My:SearchTrainingCourse ID="SearchTrainingCourse1" runat="server"></My:SearchTrainingCourse>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>

    <My:TableDataSource ID="ods" runat="server">
        <SelectQuery>
            <MyTable TableName="Employee" AliasName="e">
            </MyTable>
            <MyColumns>
                <My:MyColumn ColumnList="e.EmployeeID, e.EmployeeName"></My:MyColumn>            
                <My:MyColumn ColumnList="o.OrganizationName"></My:MyColumn>            
            </MyColumns>
            <relations>
                <My:Relation TableName="Organization" AliasName="o" LeftKey="e.OrganizationID" RightKey="o.OrganizationID">
                    <Conditions>
                        <My:ValueCondition ColumnName="1" EqualityOperator="Equal" Value="1" ValueType="Int32"></My:ValueCondition>
                    </Conditions>
                </My:Relation>
            </relations>
            <Conditions>
                <My:ValueCondition ColumnName="o.OrganizationID" EqualityOperator="Equal" Value="2" ValueType="Int32"></My:ValueCondition>
            </Conditions>            
        </SelectQuery>
    </My:TableDataSource>
    <table align="center" style="height: expression(screen.availHeight - window.screenTop)"
        runat="server" visible="false">
        <tr>
            <td>
                <table width="600" cellspacing="0" cellpadding="0" align="center" style="border-color: White;
                    border-width: thin; border-style: solid;">
                    <tr bgcolor="lightgreen" height="180">
                        <td align="center">
                            <img id="Img1" src="~\images\title.GIF" runat="server" />
                            <%--<asp:Label ID="lblApplicationName" runat="server" Text="<%$ Resources:App, ApplicationName %>"></asp:Label>--%>
                        </td>
                    </tr>
                    <tr bgcolor="lightblue" height="150">
                        <td align="center">
                            <table>
                                <tr>
                                    <td align="left" class="Section">
                                        <asp:Label ID="lblEmployeeLogin" runat="server" meta:resourcekey="lblEmployeeLogin"></asp:Label>
                                    </td>
                                    <td>
                                    </td>
                                    <td>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="2" align="left">
                                        <asp:Label ID="lblSSOLoginTip" runat="server" meta:resourcekey="lblSSOLoginTip"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:UpdatePanel ID="UpdatePanel2" runat="server" UpdateMode="conditional">
                                            <contenttemplate>
                                                <asp:Button ID="btnSSOLogin" runat="server" meta:resourcekey="btnSSOLogin" />
                                            </contenttemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td align="left" class="Section">
                                        <asp:Label ID="lblVolunteerLogin" runat="server" meta:resourcekey="lblVolunteerLogin"></asp:Label>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblUserID" runat="server" meta:resourcekey="lblUserID" AccessKey="u"
                                            AssociatedControlID="txtUserID"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="txtUserID" runat="server" SkinID="highlight"></asp:TextBox>
                                    </td>
                                </tr>
                                <tr>
                                    <td align="right">
                                        <asp:Label ID="lblPassword" runat="server" meta:resourcekey="lblPassword" AccessKey="p"
                                            AssociatedControlID="txtPassword"></asp:Label>
                                    </td>
                                    <td align="left">
                                        <asp:TextBox ID="txtPassword" runat="server" TextMode="password" SkinID="highlight"></asp:TextBox>
                                    </td>
                                    <td>
                                        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="conditional">
                                            <contenttemplate>
                                                <asp:Button ID="btnLogin" runat="server" meta:resourcekey="btnLogin" />
                                            </contenttemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                                <tr>
                                    <td colspan="3">
                                        <hr />
                                    </td>
                                </tr>
                                <tr>
                                    <td>
                                    </td>
                                    <td>
                                        <asp:Label ID="lblRegisterTip" runat="server" meta:resourcekey="lblRegisterTip" SkinID="tip"></asp:Label>
                                    </td>
                                    <td>
                                        <asp:UpdatePanel ID="up1" runat="server" UpdateMode="conditional">
                                            <contenttemplate>
                                                <asp:Button ID="btnRegister" runat="server" meta:resourcekey="btnRegister" />
                                            </contenttemplate>
                                        </asp:UpdatePanel>
                                    </td>
                                </tr>
                            </table>
                            <asp:UpdateProgress ID="progress1" runat="server">
                                <progresstemplate>
                                    <My:UpdateProgress ID="myprogress1" runat="server" />
                                </progresstemplate>
                            </asp:UpdateProgress>
                        </td>
                    </tr>
                    <tr>
                        <td>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
</asp:Content>
